package cn.yunyichina.provider.base.main;

import cn.yunyichina.provider.base.utils.NewPaltformHospitalCodeMap;
import cn.yunyichina.provider.base.utils.OrgCodeMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;


/**
 * 基础服务子系统启动入口
 *
 * @author zhangkw
 * @date 2016-07-29
 */
public class BaseApp {

    private static final Logger logger = LoggerFactory.getLogger(BaseApp.class);

    public static void main(String[] args) throws Exception {
        OrgCodeMap.getConfig().initHttpConfig();
        NewPaltformHospitalCodeMap.getConfig().initHttpConfig();
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        applicationContext.start();
        logger.info("---------------start yyt-provider-base sucessful---------------------");
        com.alibaba.dubbo.container.Main.main(args);
    }

}
